//
// Created by redcat1 on 03.05.2024.
//

#include "vector_exception.h"


//
std::string VectorNegativeSize::what() const
{
  return "Vector size cannot be negative (size = " + std::to_string(size) + ")";
}

//
std::string VectorBiggerThanCapacity::what() const
{
  return "Vector size (size = " + std::to_string(size) + ") is bigger than its capacity (capacity = " + std::to_string(capacity) + ")";
}

//
std::string VectorIndexOutOfRange::what() const
{
  return "Bad Vector index = " + std::to_string(index) + " but Vector allowed indexes = [0, " + std::to_string(size-1) + "]";
}

//
std::string VectorNegativeIndex::what() const
{
  return "Vector index cannot be negative (index = " + std::to_string(index) + ")";
}
